package com.i2works.smartluolong.utils.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 通用JSON返回对象
 *
 * @author koal koal@vip.qq.com
 * @date 2015年12月1日 下午9:22:51
 */
public class Result<T> implements Serializable {

    private boolean success = true;
    private Integer errorCode;
    private String msg;
    private T model;
    private Integer total;
    private List<T> rows;

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }


}
